package bam.service.impl;

import bam.dao.RecordDao;
import bam.service.RecordService;

public class RecordServiceImpl implements RecordService {
private RecordDao recordDao;
	
	public int selectDayUser(String areaid, String newDate, String oldDate)
			 {
		int re= -1;
		try {
			re=  recordDao.selectDayUser(areaid, newDate, oldDate);
		} catch (Exception e) {
			re= -1;
			e.printStackTrace();
		}
		return re;
	}

	public int selectNewUser(String areaid, String newDate, String oldDate)
			{
		int re= -1;
		try {
			re= recordDao.selectNewUser(areaid, newDate, oldDate);
		} catch (Exception e) {
			re= -1;
			e.printStackTrace();
		}
		return re;
	}

	public int selectNewNet(int areaid, String newDate, String oldDate)
			throws Exception {
		return recordDao.selectNewNet(areaid, newDate, oldDate);
	}

	public int selectNewBinding(int areaid, String newDate, String oldDate)
			throws Exception {
		return recordDao.selectNewBinding(areaid, newDate, oldDate);
	}

	public int selectcountUser(int areaid, String newDate) throws Exception {
		return recordDao.selectcountUser(areaid, newDate);
	}

	public int selectcountBinding(int areaid, String newDate) throws Exception {
		return recordDao.selectcountBinding(areaid, newDate);
	}

	
	
	public void setRecordDao(RecordDao recordDao) {
		this.recordDao = recordDao;
	}

	
}
